package com.kish.web;

import com.kish.pojo.Brand;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;

@Controller
public class BrandController {
    @RequestMapping("/brand/one")
    @ResponseBody
    public String getOneBrand(String brand_name) {
        System.out.println(brand_name);
        return brand_name;
    }

    @RequestMapping("/brand/where")
    @ResponseBody
    public Brand getBrandByWhere(Brand brand) {
        System.out.println(brand);
        return brand;
    }

    @RequestMapping("/brand/del")
    @ResponseBody
    public String getBrandByWhere(int[] ids) {
        System.out.println(Arrays.toString(ids));
        return Arrays.toString(ids);
    }
}
